package com.ssr.master.modules.service;

import com.github.pagehelper.Page;
import com.github.pagehelper.PageInfo;
import com.ssr.master.common.Base.PageBase;
import com.ssr.master.common.Base.PageBean;
import com.ssr.master.common.exception.RegisterException;
import com.ssr.master.common.service.CrudService;
import com.ssr.master.modules.entity.SysUser;

import java.util.List;

/**
 * @author ZhangPeng
 * @Describe //todo
 * @date
 * @updateBy
 * @other
 **/

public interface SysUserService extends CrudService<SysUser> {
    public SysUser getUser(String s);

    /**
     * @param sysUser
     * @return com.ssr.master.modules.entity.SysUser
     * @Description //todo 根据登录名查询用户
     * @author ZhangPeng
     * @date 2020/6/20 22:52
     * @other
     **/
    public SysUser getByLoginName (SysUser sysUser);

    /**
     * @param sysUser
     * @return com.github.pagehelper.Page<com.ssr.master.modules.entity.SysUser>
     * @Description //todo 获取本机构user用户列表
     * @author ZhangPeng
     * @date 2020/7/20 16:04
     * @other
    **/
    public PageBean<SysUser> findListPage (SysUser sysUser) throws RegisterException;

}
